-- GENERATED SPELL FOR [Lava Elemental] --


function spell0_12076(pUnit, Event) --@Pyroclast Barrage,Self--
pUnit:FullCastSpellOnTarget(19641,pUnit)
pUnit:RegisterEvent('Sorts_12076', 6000, 1)
end

function Sorts_12076(pUnit, Event)
local choix_sorts_12076 = math.random(0, 0)
if choix_sorts_12076 == 0 then
pUnit:RegisterEvent('spell0_12076', 1, 1)
end
end

function mob12076_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12076', math.random(1500, 3000), 1)
end

function mob12076_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12076_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12076_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12076, 1, 'mob12076_Action')
RegisterUnitEvent(12076, 2, 'mob12076_Leave')
RegisterUnitEvent(12076, 3, 'mob12076_Kill')
RegisterUnitEvent(12076, 4, 'mob12076_Die')
